<?php

namespace app\admin\validate;

use think\Validate;


class LoginValidate extends Validate
{

	protected $rule = [
        'username' => 'require',
        'password' => 'require|length:6,20',
        'code'=> 'require', 
    ];
    

    protected $message = [
        'username.require' => '用户名不能为空',
        'password.require' => '密码不能为空',
        'password.length'=>'password的长度必须为6到20位',    
        'code.require' =>   '验证码不能为空',  
        
    ];
}
